import request from '@/utils/request'

// 查询顺风车半径列列表
export function listTailwind(query) {
  return request({
    url: '/boss/tailwind/list',
    method: 'get',
    params: query
  })
}

// 查询顺风车半径列详细
export function getTailwind(tailwindId) {
  return request({
    url: '/boss/tailwind/' + tailwindId,
    method: 'get'
  })
}

// 新增顺风车半径列
export function addTailwind(data) {
  return request({
    url: '/boss/tailwind',
    method: 'post',
    data: data
  })
}

// 修改顺风车半径列
export function updateTailwind(data) {
  return request({
    url: '/boss/tailwind',
    method: 'put',
    data: data
  })
}

// 删除顺风车半径列
export function delTailwind(tailwindId) {
  return request({
    url: '/boss/tailwind/' + tailwindId,
    method: 'delete'
  })
}
